//
//  WSDL_String.m
//  RWUIControls
//
//  Created by shenchengcai on 15/6/23.
//  Copyright (c) 2015年 QM. All rights reserved.
//

#import "WSDL_String.h"

@implementation WSDL_String

- (const xmlChar *)xmlChar
{
    return (const xmlChar *)[self UTF8String];
}

#ifdef GNUSTEP
- (NSString *)stringByTrimming
{
    return [self stringByTrimmingSpaces];
}
#else
- (NSString *)stringByTrimming
{
    NSMutableString *mStr = [self mutableCopy];
    CFStringTrimWhitespace((__bridge CFMutableStringRef)mStr);
    
    NSString *result = [mStr copy];
    
    return result;
}
#endif

@end
